CREATE TABLE [dbo].[TTANTC_ANUL]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_UNID_CONC] [dbo].[TD_VC_003] NOT NULL,
[FE_AMAR] [dbo].[TD_DT_001] NOT NULL,
[NU_AMAR] [dbo].[TD_VC_008] NOT NULL,
[CO_TIPO_OPER] [dbo].[TD_VC_003] NOT NULL,
[FE_ANUL] [dbo].[TD_DT_001] NOT NULL,
[ST_CONT] [dbo].[TD_VC_001] NOT NULL,
[NU_PROC] [dbo].[TD_IN_001] NOT NULL CONSTRAINT [DF__TTANTC_AN__NU_PR__6C43F744] DEFAULT ((0)),
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TTANTC_AN__CO_US__6D381B7D] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTANTC_AN__FE_US__6E2C3FB6] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TTANTC_AN__CO_US__6F2063EF] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTANTC_AN__FE_US__70148828] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTANTC_ANUL] ADD CONSTRAINT [PK__TTANTC_A__2F1962B25071BF9D] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_UNID_CONC], [FE_AMAR], [NU_AMAR]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTANTC_ANUL] ADD CONSTRAINT [FK__TTANTC_AN__CO_EM__38BA319D] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
